import 'package:flutter/material.dart';

class MyHomePage extends StatelessWidget {
  const MyHomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: 120,
      child: ListView(
        padding: const EdgeInsets.fromLTRB(10, 10, 10, 10),
        scrollDirection: Axis.horizontal,
        children: <Widget>[
          Container(
            width: 120,
            decoration: const BoxDecoration(color: Colors.red),
            child: Column(
              children: [
                Container(
                  height: 80,
                  child: Image.network(
                    "https://p4.img.cctvpic.com/photoworkspace/contentimg/2023/12/04/2023120421370646314.jpg",
                    fit: BoxFit.cover,
                  ),
                ),
                const Text("蚊子")
              ],
            ),
          ),
          Container(
            width: 120,
            decoration: const BoxDecoration(color: Colors.black),
          ),
          Container(
            width: 120,
            decoration: const BoxDecoration(color: Colors.blue),
          ),
          Container(
            width: 120,
            decoration: const BoxDecoration(color: Colors.orange),
          ),
          Container(
            width: 120,
            decoration: const BoxDecoration(color: Colors.yellow),
          ),
          Container(
            width: 120,
            decoration: const BoxDecoration(color: Colors.pink),
          ),
          Container(
            width: 120,
            decoration: const BoxDecoration(color: Colors.green),
          ),
        ],
      ),
    );
  }
}
